package com.example.communitypro.pojo;

import java.io.Serializable;
import java.util.Date;

public class UserBrowseHistory implements Serializable {
    private Integer browseRecordNo;

    private Integer userNo;

    private Integer browseObjectNo;

    private Integer browseObjectType;

    private Date browseTime;

    private static final long serialVersionUID = 1L;

    public Integer getBrowseRecordNo() {
        return browseRecordNo;
    }

    public void setBrowseRecordNo(Integer browseRecordNo) {
        this.browseRecordNo = browseRecordNo;
    }

    public Integer getUserNo() {
        return userNo;
    }

    public void setUserNo(Integer userNo) {
        this.userNo = userNo;
    }

    public Integer getBrowseObjectNo() {
        return browseObjectNo;
    }

    public void setBrowseObjectNo(Integer browseObjectNo) {
        this.browseObjectNo = browseObjectNo;
    }

    public Integer getBrowseObjectType() {
        return browseObjectType;
    }

    public void setBrowseObjectType(Integer browseObjectType) {
        this.browseObjectType = browseObjectType;
    }

    public Date getBrowseTime() {
        return browseTime;
    }

    public void setBrowseTime(Date browseTime) {
        this.browseTime = browseTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserBrowseHistory other = (UserBrowseHistory) that;
        return (this.getBrowseRecordNo() == null ? other.getBrowseRecordNo() == null : this.getBrowseRecordNo().equals(other.getBrowseRecordNo()))
                && (this.getUserNo() == null ? other.getUserNo() == null : this.getUserNo().equals(other.getUserNo()))
                && (this.getBrowseObjectNo() == null ? other.getBrowseObjectNo() == null : this.getBrowseObjectNo().equals(other.getBrowseObjectNo()))
                && (this.getBrowseObjectType() == null ? other.getBrowseObjectType() == null : this.getBrowseObjectType().equals(other.getBrowseObjectType()))
                && (this.getBrowseTime() == null ? other.getBrowseTime() == null : this.getBrowseTime().equals(other.getBrowseTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBrowseRecordNo() == null) ? 0 : getBrowseRecordNo().hashCode());
        result = prime * result + ((getUserNo() == null) ? 0 : getUserNo().hashCode());
        result = prime * result + ((getBrowseObjectNo() == null) ? 0 : getBrowseObjectNo().hashCode());
        result = prime * result + ((getBrowseObjectType() == null) ? 0 : getBrowseObjectType().hashCode());
        result = prime * result + ((getBrowseTime() == null) ? 0 : getBrowseTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", browseRecordNo=").append(browseRecordNo);
        sb.append(", userNo=").append(userNo);
        sb.append(", browseObjectNo=").append(browseObjectNo);
        sb.append(", browseObjectType=").append(browseObjectType);
        sb.append(", browseTime=").append(browseTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
